<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:if test="${pageBean.totalRecords > 0 }">
</c:if>
	<div class="pagination pagination-right">
		<ul >
		    <c:choose>
		    	<c:when test="${pageBean.toFirst }">
		    		<li><a href="javascript:void(0)"  onclick="gotoPage(1)"  >首页</a></li>
		    	</c:when>
		    	<c:otherwise>
		    		<li class="disabled" ><a href="javascript:void(0)">首页</a></li>
		    	</c:otherwise>
		    </c:choose>
		    <c:choose>
		    	<c:when test="${pageBean.toPre }">
		    		<li><a href="javascript:void(0)"  onclick="gotoPage(${pageBean.currentPage - 1})"  >上一页</a></li>
		    	</c:when>
		    	<c:otherwise>
		    		<li class="disabled" ><a href="javascript:void(0)">上一页</a></li>
		    	</c:otherwise>
		    </c:choose>
		    <c:choose>
		    	<c:when test="${pageBean.toNext }">
		    		<li><a href="javascript:void(0)"  onclick="gotoPage(${pageBean.currentPage + 1})"  >下一页</a></li>
		    	</c:when>
		    	<c:otherwise>
		    		<li class="disabled" ><a href="javascript:void(0)">下一页</a></li>
		    	</c:otherwise>
		    </c:choose>
		    <c:choose>
		    	<c:when test="${pageBean.toLast }">
		    		<li><a href="javascript:void(0)"  onclick="gotoPage(${pageBean.totalPages})"  >末页</a></li>
		    	</c:when>
		    	<c:otherwise>
		    		<li class="disabled" ><a href="javascript:void(0)">末页</a></li>
		    	</c:otherwise>
		    </c:choose>
		    <li><a >第 ${pageBean.currentPage} 页/共 ${pageBean.totalPages} 页/共 ${pageBean.totalRecords} 条记录</a></li>
		</ul>
	</div>
